import Vue from "vue";
import VueRouter from "vue-router";
import Layout from "@/views/Layout/index.vue";
import Login from "@/views/Login/index.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/login",
    name: "login",
    component: Login,
  },
  {
    path: "/",
    component: Layout,
    children: [
      //   {
      //     path: "/",
      //     name: "home",
      //     component: () => import("@/views/Home"),
      //   },
      //   {
      //     path: "/about",
      //     name: "about",
      //     component: () => import("@/views/About"),
      //   },
    ],
  },
];
const router = new VueRouter({
  mode: "history",
  base: import.meta.env.BASE_URL,
  routes,
});
export default router;
